<include file="__PUBLIC__/_header" />
<link rel="stylesheet" href="__APP_SKIN__css/newInformation.css?2">
<script src="__APP_SKIN__js/orderManage.js" type="text/javascript"></script>
<script src="__APP_SKIN__js/orderList.js" type="text/javascript"></script>
<script src="__APP_SKIN__js/FileSaver.js" type="text/javascript"></script>
<script src="__APP_SKIN__js/plugin/WdatePicker.js" type="text/javascript"></script>
<body>
<style>
.orderso{
    width: 76px;
    height: 35px;
    background-color: #0c8bb4;
    padding: 6px 20px;
    color: #fff;
    font-size: 16px;
    vertical-align: middle;
    margin-left: 20px;
}

</style>
<!--头部开始-->
<include file="__PUBLIC__/_nav" />
<!--头部结束-->
<if condition="$data ">
<div class="Infobox" style="clear: both;">


    <div class="searchInfo searchifo3">
        <div class="searchInfo-box" >
            开始日期:
            <input id="d11" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
            结束日期:
            <input id="d12" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
            <a class="orderso" href="javascript:void(0)">查询</a>

        </div>


    </div>
    <div class="Infobox" style="margin-top: 20px;">
        <table cellspacing="0" cellpadding="0" class="table2 accor">
            <tr>
                <th>结算单编码</th>
                <th>结算时间</th>
                <th>结算金额</th>
                <th>付款状态</th>
                <th>操作</th>
            </tr>
            <volist name="data" id="vo">
                <tr>
                    <td><a href="{:Controller::_createUrl('index/orderdetail')}/orderid/{$vo.orderid}">{$vo.orderid}</a></td>
                    <td>{$vo.insert_dt}</td>
                    <td>{$vo.price}</td>
                    <td>
                        <if condition="$vo.state eq 0 ">
                            &nbsp;
                            &nbsp;

                            <elseif condition="$vo.state eq 1"/>
                            已支付
                            <elseif condition="$vo.state eq 2"/>
                            未支付
                        </if>
                    </td>
                    <td id="statusBtn_208000292402">&nbsp;
                        &nbsp;
                    </td>
                </tr>
            </volist>


        </table>
    </div>


    <div class="Infobox-dialog" style="display: none; width:880px">

        <div class="dialog-table">
            <center>
                <table  border="0" style="border:1px solid #ccc;display: none; width:840px" cellspacing="0" cellpadding="0" id="tabInfoTemp" class="tableAccout" >
                    <tr>
                        <th class="th03">项目名称</th>
                        <th  class="th01">编号</th>
                        <th class="th02">时间</th>
                        <th class="th04">二级项目名称</th>
                        <th class="th05">金额</th>
                        <th class="th07">备注</th>
                        <th class="th08" >结算总金额</th>
                    </tr>
                </table>
                <table  border="0" style="border:1px solid #ccc; width:840px" cellspacing="0" cellpadding="0" id="tabInfo" class="tableAccout">
                </table>
            </center>
        </div>
    </div>
    <div class="page">
        <div>{$pager_html}</div>
    </div>
</div>
<else/>
<div class="searchInfo searchifo3" style="height:240px;">  <div style="width:600px;text-align:center;margin: 30px auto;">暂无数据</div></div>
</if>
    <div class="footer">
        <!--<p>湘ICP备13004873号-3 Copyright  芙蓉兴盛 2001-2016，All Rights Reserved </p>-->
       <!-- <p>监督热线：400-600-2200 企业QQ：400-6611-001</p>-->
    </div>


</body>
<script>
    $(function(){
      $(".orderso").click(function(){
          var starttime=  $("#d11").val();
          var endtime=  $("#d12").val();
              if(!starttime){
                  layer.tips('请选择开始时间', '#d11', {
                      tips: 3
                  });
                  return;
              }
if(!endtime){
    var href="{:Controller::_createUrl('index/account')}/ordtime/"+starttime;
}else{
    var href="{:Controller::_createUrl('index/account')}/ordtime/"+starttime+'/ordtime_end/'+endtime;
}

          window.location.href=href;

      })

        $(".maintop .left .meun a").eq(5).addClass("active");
    })
</script>
</html>